package com.bangda.crm.domain;

import java.math.BigDecimal;
import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 库存异动对象 crm_stock_move
 * 
 * @author fbs
 * @date 2024-07-11
 */
public class CrmStockMove extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库存异动id */
    private Long stockMoveId;

    /** 库存id */
    @Excel(name = "库存id")
    private Long stockId;
    //stock_name
    @Excel(name = "库存id")
    private String  stockName;
    /** 交易类型  进货  出货 */
    @Excel(name = "交易类型  进货  出货")
    private String tradeType;

    /** 数量 */
    @Excel(name = "数量")
    private BigDecimal quantity;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 图片 */
    @Excel(name = "图片")
    private String img;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal money;

    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal sumMoney;

    /** 交易客户名 */
    @Excel(name = "交易客户名")
    private String tradingClient;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date[] electricity;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
    /** 创建者 */
    @Excel(name = "创建者")
    private String creationBy;

    /** 更新者 */
    @Excel(name = "更新者")
    private String upadteBy;

    public String getStockName() {
        return stockName;
    }

    public void setStockName(String stockName) {
        this.stockName = stockName;
    }

    public Date[] getElectricity() {
        return electricity;
    }

    public void setElectricity(Date[] electricity) {
        this.electricity = electricity;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public void setstockMoveId(Long stockMoveId)
    {
        this.stockMoveId = stockMoveId;
    }

    public Long getstockMoveId()
    {
        return stockMoveId;
    }
    public void setStockId(Long stockId) 
    {
        this.stockId = stockId;
    }

    public Long getStockId() 
    {
        return stockId;
    }
    public void setTradeType(String tradeType) 
    {
        this.tradeType = tradeType;
    }

    public String getTradeType() 
    {
        return tradeType;
    }
    public void setQuantity(BigDecimal quantity) 
    {
        this.quantity = quantity;
    }

    public BigDecimal getQuantity() 
    {
        return quantity;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setMoney(BigDecimal money) 
    {
        this.money = money;
    }

    public BigDecimal getMoney() 
    {
        return money;
    }
    public void setSumMoney(BigDecimal sumMoney) 
    {
        this.sumMoney = sumMoney;
    }

    public BigDecimal getSumMoney() 
    {
        return sumMoney;
    }
    public void setTradingClient(String tradingClient) 
    {
        this.tradingClient = tradingClient;
    }

    public String getTradingClient() 
    {
        return tradingClient;
    }
    public void setCreationBy(String creationBy) 
    {
        this.creationBy = creationBy;
    }

    public String getCreationBy() 
    {
        return creationBy;
    }
    public void setUpadteBy(String upadteBy) 
    {
        this.upadteBy = upadteBy;
    }

    public String getUpadteBy() 
    {
        return upadteBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append(" stockMoveId", getstockMoveId())
            .append("stockId", getStockId())
            .append("tradeType", getTradeType())
            .append("quantity", getQuantity())
            .append("unit", getUnit())
            .append("img", getImg())
            .append("money", getMoney())
            .append("sumMoney", getSumMoney())
            .append("tradingClient", getTradingClient())
            .append("createTime", getCreateTime())
            .append("creationBy", getCreationBy())
            .append("updateTime", getUpdateTime())
            .append("upadteBy", getUpadteBy())
            .append("remark", getRemark())
            .toString();
    }
}
